﻿using System;
namespace ElingOA6_Admin_DSJCJ.Model
{
	/// <summary>
	/// CdLeaveReason:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class CdLeaveReason
	{
		public CdLeaveReason()
		{
			FClass="1";
			FIsSignOut="Y";
			FIsStat="Y";
		}
		#region Model
		/// <summary>
		/// 请假外出事由编码
		/// </summary>
		public string FLeaveReasonCd
		{
			set;
			get;
		}
		/// <summary>
		/// 请假外出事由名称
		/// </summary>
		public string FLeaveReasonName
		{
			set;
			get;
		}
		/// <summary>
		/// 类别：
///1 请假
///2 外出
		/// </summary>
		public string FClass
		{
			set;
			get;
		}
		/// <summary>
		/// 是否需要签退
///Y - 是
///N - 否
		/// </summary>
		public string FIsSignOut
		{
			set;
			get;
		}
		/// <summary>
		/// 是否需要统计
///Y - 是
///N - 否
		/// </summary>
		public string FIsStat
		{
			set;
			get;
		}

        public string FClassStr
        {
            get
            {
                if (FClass == "1")
                {
                    return "请假";
                }
                else
                {
                    return "外出";
                }
            }
        }

        public string FIsSignOutStr
        {
            get
            {
                if (FIsSignOut == "Y")
                {
                    return "是";
                }
                else
                {
                    return "否";
                }
            }
        }

        public string FIsStatStr
        {
            get
            {
                if (FIsStat == "Y")
                {
                    return "是";
                }
                else
                {
                    return "否";
                }
            }
        }
		#endregion Model

	}
}

